
using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
namespace XiaoYuStock.Model.Models
{

    [DbConfigurationType(typeof(MySql.Data.Entity.MySqlEFConfiguration))]
    public class ShareContext: DbContext
    {
        static ShareContext()
        {
            Database.SetInitializer<ShareContext>(null);
        }
        public ShareContext(): base("Name=sharestock") {
            Database.SetInitializer<ShareContext>(null);
        }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
  
        }
        public DbSet<HistoryData> HistoryData { get; set; }


        

        public DbSet<DayData> DayData { get; set; }

        public DbSet<ShareList> ShareList { get; set; }



 
      
    }
}

